package com.sto.stoapp.entity;

import android.os.Parcel;
import android.os.Parcelable;

public class SelectSignNameEntity extends BaseEntity implements Parcelable{

	public final String USER_ADD = "1";
	// 更新类型
	private String updateType;

	public String getUpdateType() {
		return updateType;
	}

	public void setUpdateType(String updateType) {
		this.updateType = updateType;
	}
		
	// 编号
	private String code;
	// 名称
	private String name;
	// 是否用户增加
	private boolean isUser;

	public SelectSignNameEntity() {

	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public boolean isUser() {
		return isUser;
	}

	public void setUser(boolean isUser) {
		this.isUser = isUser;
	}

	@Override
	public int describeContents() {
		return 0;
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeString(code);
		dest.writeString(name);
		dest.writeValue(isUser);
	}

		public static final Parcelable.Creator<SelectSignNameEntity> CREATOR = new Creator<SelectSignNameEntity>() {

			@Override
			public SelectSignNameEntity[] newArray(int size) {
				return new SelectSignNameEntity[size];
			}

			@Override
			public SelectSignNameEntity createFromParcel(Parcel source) {
				SelectSignNameEntity entity = new SelectSignNameEntity();
				entity.code = source.readString();
				entity.name = source.readString();
				entity.isUser = (Boolean) source.readValue(null);
				return entity;
			}
		};
}
